﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Psm.PubSub.Messaging;
using Psm.Session;

namespace Psm.PubSub.StateCache
{
    internal class QueryMessageDecorator
    {
        public ISession Session {get; private set;}
        public QueryMessage QueryMessage { get; private set;}

        public QueryMessageDecorator(ISession session, QueryMessage message)
        {
            Session = session;
            QueryMessage = message;
        }

        internal void PublishMessage(DataMessageInternal other)
        {
            Session.SendMessage(other);
        }
    }
}
